package com.xuzimian.globaldemo.rpc.hessian;

import com.caucho.hessian.server.HessianServlet;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: global-demo
 * @description: 远程hessian服务的接口实现
 * @author: xzm
 * @create: 2019-01-10 10:49
 **/
public class BookServiceImpl extends HessianServlet implements BookService {
    public List<Book> getList() {
        List<Book> list=new ArrayList<Book>();
        Book b1=new Book();
        b1.setName("《信息简史》");
        b1.setPrice(56);
        Book b2=new Book();
        b2.setName("《黑客与画家》");
        b2.setPrice(48);
        list.add(b1);
        list.add(b2);
        return list;
    }

}
